package com.newsnetwork.admin.controller;

import org.springframework.security.crypto.bcrypt.BCrypt;

/**
 * @author: HuangDekai
 * @date: 2022/11/7 10:29
 * @version: 1.0
 * @since: jdk8
 * @description: 对密码进行加密
 */
public class PWDTest {
    public static void main(String[] args) {
        String pwd = BCrypt.hashpw("admin", BCrypt.gensalt());
        System.out.println(pwd);
    }
}
